/*
package com.prothink.dao;

import com.prothink.entity.JsCourse;
import org.springframework.data.elasticsearch.annotations.Highlight;
import org.springframework.data.elasticsearch.annotations.HighlightField;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.core.SearchHits;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

*/
/**
 * @ClassName : ESCourseRepository  //类名
 * @Description :   //描述
 * @Author : Zhang //作者
 * @Date: 1/19  21:18
 *//*

public interface ESCourseRepository extends ElasticsearchRepository<JsCourse, String> {
    List<JsCourse> findByCourseNameOrCreateId(String courseName, String createId);

    @Highlight(fields = {
            @HighlightField(name = "courseName"),
            @HighlightField(name = "createId")
    })
    @Query("{\"match\":{\"courseName\":\"?0\"}}")
    SearchHits<JsCourse> find(String keyword);
}
*/
